import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';

@Injectable({
    providedIn: 'root'
})
export class WarehouseGoodsBomService {

    /**
     * bom 列表
     * */
    public bomList_URL = "/whgoods/listBoom";
    /**
    * 采购计划单查询商品
    */
    public whGet_URL = "/whgoods/conditionQuery";


    constructor(public httpClient: HttpClient) { }

    /**
     * bom 列表
    */
    public async bomList(params: any) {
        return await this.httpClient.post(this.whGet_URL, params).toPromise()
    }
    /**
     * 采购计划单查询商品
     */
    public async whList(params: any) {
        return await this.httpClient.post(this.whGet_URL, params).toPromise()
    }
}
